/*
 *  Copyright (C) 2010 MADSA.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/. 
 *
 *  Author: Victor Mayoral Vilches
 *          
 */

package com.madsa.tuPeli;

import java.sql.Time;
import java.util.ArrayList;

public class Pelicula {
	
	private String titulo;
	private String fecha;
	private String url;
	private String info;
	private String horariosString;
	private ArrayList<Time> sesiones;
	private String sinopsis;
	
	public Pelicula(String titulo){
		this.setTitulo(titulo);
	}
	
	public String toString(){
		String salida = "Película: " + this.getTitulo() + "\n";
		salida += "  Información: " + this.info + "\n";
		salida += "  Sesiones " + this.getFecha().toString() + "\n";
		for(Time sesion: sesiones){
			salida += "    " + sesion.toString();
		}
		salida += "\n  Sinopsis " + this.sinopsis + "\n";
		return salida;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getInfo() {
		return info;
	}

	public void setHorariosString(String horariosString) {
		this.horariosString = horariosString;
	}

	public String getHorariosString() {
		return horariosString;
	}

	public void setSesiones(ArrayList<Time> sesiones) {
		this.sesiones = sesiones;
	}

	public ArrayList<Time> getSesiones() {
		return sesiones;
	}

	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}

	public String getTitulo() {
		return titulo;
	}

	public void setSinopsis(String sinopsis) {
		this.sinopsis = sinopsis;
	}

	public String getSinopsis() {
		return sinopsis;
	}

	public void setFecha(String fecha) {
		this.fecha = fecha;
	}

	public String getFecha() {
		return fecha;
	}
}